<?php

use Phalcon\Mvc\Model;

class TestDetails extends Model
{
	protected $id;
	protected $test;
	protected $type;
	protected $title;
	protected $question;
	protected $option_1;
	protected $option_2;
	protected $option_3;
	protected $option_4;
	protected $correct_answer;
	protected $score;

	public function getSource()
	{
		return "ot_test_db";
	}

	public function initialize()
	{
		$this->hasMany("id", "Answers","test_db");
	}

	public function getId()
	{
		return $this->id;
	}

	public function getTest()
	{
		return $this->test;
	}

	public function setTest($test)
	{
		$this->test = $test;
	}

	public function getType()
	{
		return $this->type;
	}

	public function setType($type)
	{
		$this->type = $type;
	}

	public function getTitle()
	{
		return $this->title;
	}

	public function setTitle($title)
	{
		$this->title = $title;
	}

	public function getQuestion()
	{
		return $this->question;
	}

	public function setQuestion($question)
	{
		$this->question = $question;
	}

	public function getOption_1()
	{
		return $this->option_1;
	}

	public function setOption_1($option_1)
	{
		$this->option_1 = $option_1;
	}

	public function getOption_2()
	{
		return $this->option_2;
	}

	public function setOption_2($option_2)
	{
		$this->option_2 = $option_2;
	}

	public function getOption_3()
	{
		return $this->option_3;
	}

	public function setOption_3($option_3)
	{
		$this->option_3 = $option_3;
	}

	public function getOption_4()
	{
		return $this->option_4;
	}

	public function setOption_4($option_4)
	{
		$this->option_4 = $option_4;
	}

	public function getCorrect_answer()
	{
		return $this->correct_answer;
	}

	public function setCorrect_answer($correct_answer)
	{
		$this->correct_answer = $correct_answer;
	}

	public function getScore()
	{
		return $this->score;
	}

	public function setScore($score)
	{
		$this->score = $score;
	}
}